package generic;

import java.util.ArrayList;
import java.util.List;

public class GenericArgs {

	
	public static<T>  List<T> markList(T...ts){
		List<T> lst=new ArrayList<T>();
		for(T t:ts){
			lst.add(t);
		}
		return lst;
	}
	
	public static void main(String[] str){
		List<String> ls=markList("a","bb","ccc","dddd");
		System.out.println(ls);
		 
	}
	
}
